# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=py3-hpack
pkgver=4.0.0
pkgrel=4
pkgdesc="HTTP/2 framing layer for Python"
url="https://python-hyper.org/projects/hpack/en/latest/"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-pytest py3-hypothesis"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/h/hpack/hpack-$pkgver.tar.gz"
builddir="$srcdir/hpack-$pkgver"
options="!check" # testsuite appears to miss some py3-pytest-* dependency

build() {
	python3 setup.py build
}

check() {
	cd test
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="7a303d00176288cefb4b9c562aad8d15f4e15865d6f6c8c8a086cc2ebf605547c5b2ca0498ba24d758f0a9e37877b585de1b55b232eae271b9eaf2d1238106ca  hpack-4.0.0.tar.gz"
